#include <stdio.h>


int fun2(int a,int b)
{
	int c ;
	c=a*b%3;
	return c;
}
int fun1(int a,int b)
{
        int c;
        a+=a;b+=b;c=fun2(a,b);

        return c*c;
}

void main()
{
	int x=11,y=19;
	printf("%d\n",fun1(x,y));
}
